package frame

import (
	twig "beergo/plugins/twig/lib/go"
	"github.com/beego/beego/v2/server/web"
)

func init() {
	twig.ConfRoot = web.AppConfig.DefaultString("Root", "D:/go_v20/go_v20")
	twig.ConfPhpBinPath = web.AppConfig.DefaultString("twig::PhpBinPath", "php")
	twig.ConfPhpPath = "plugins/twig/php"
	twig.ConfTwigPath = "views/twig"
	twig.ConfCacheDir = "twig/var/"
	//twig.CheckPHPFileOrCreate()
	twig.ConfDev = true
	twig.ConfNumPipes = 3
	twig.Init()
}
